import Layout from "@/layout";

const contantRouter = [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
    hidden: true,
    whiteList: true,
    meta: { title: "登录" }
  },
  {
    path: "/errorlog",
    component: Layout,
    redirect: "noRedirect",
    name: "ErrorLog",
    whiteList: true,
    hidden: true,
    meta: { title: "错误日志", icon: "example" },
    children: [
      {
        path: "list",
        component: () => import("@/views/errorLog"),
        name: "ErrorLogList",
        hidden: true,
        meta: { title: "错误日志" }
      }
    ]
  },
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true
  }
];

export const dashboardRoute = {
  path: "/dashboard",
  component: () => import("@/views/dashboard/index"),
  name: "DashboardIndex",
  meta: { title: "首页", breadcrumb: false }
};

export default contantRouter;
